Skip to content

Capture warnings during collect DAGs#39109

Merged
potiuk merged 4 commits into
apache:mainfrom
Taragolis:capture-warnings-dagbag
Apr 22, 2024
Merged

Capture warnings during collect DAGs#39109
potiuk merged 4 commits into
apache:mainfrom
Taragolis:capture-warnings-dagbag

Conversation

@Taragolis

Copy link
Copy Markdown
Contributor

Base implementation for capture warnings during collect DAGs during filling DAG bag.
This information not always printed into the logs or it hard to find and depends on the deployments settings.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@Taragolis Taragolis force-pushed the capture-warnings-dagbag branch from 43bfd93 to 62c9804 Compare April 18, 2024 10:11
@potiuk

potiuk commented Apr 18, 2024

Copy link
Copy Markdown
Member

Should not we also re-raise warnings in this case? What happens if someone relies on those warnings raised?

@Taragolis

Copy link
Copy Markdown
Contributor Author

Good point, I will add explicit re-raise in case if it found warnings

Comment thread airflow/models/dagbag.py Outdated
Taragolis and others added 2 commits April 19, 2024 12:36
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>

@hussein-awala hussein-awala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@potiuk potiuk merged commit 0d9d8fa into apache:main Apr 22, 2024
@utkarsharma2 utkarsharma2 added the type:misc/internal Changelog: Misc changes that should appear in change log label Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type:misc/internal Changelog: Misc changes that should appear in change log

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants